package com.book.manager.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author: yfan-chen
 * @description:
 * @create: 2021-08-31 22:21
 **/
@Data
public class Book {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键Id")
    private Integer bookId;
    @ApiModelProperty(value = "书籍名称")
    private String bookName;
    @ApiModelProperty(value = "ISBN编号")
    private String isbn;
    @ApiModelProperty(value = "书籍发版日期")
    private String articleDate;
    @ApiModelProperty(value = "书籍作者")
    private String author;

    @ApiModelProperty(value = "createTime")
    private Long createTime;
    @ApiModelProperty(value = "updateTime")
    private Long updateTime;

    @ApiModelProperty(value = "有效性")
    private Integer isValid;


    @ApiModelProperty(value = "书馆总存册数")
    @TableField(exist = false)
    private Integer allVolume;
    @ApiModelProperty(value = "书籍现存册数")
    @TableField(exist = false)
    private Integer volume;
}
